Returns the ISO weekdaynumber for a given date.
#include <date.au3>
_DateToDayOfWeekISO ( $iYear, $iMonth, $iDay )
Parameters
$iYear | A valid year in format YYYY |
$iMonth | A valid month in format MM |
$iDay | A valid day in format DD |
Return Value
Success: | Returns Day of the Week Range is 0 to 6 where 0=Monday. |
Failure: | 0 |
@Error: | 0 = No error. |
1 = Invalid Input Date |
Remarks
None.
Related
_DateToDayOfWeek, _DateDayOfWeek, _DayValueToDate, _DateAdd, _DateDiff
Example
#include <Date.au3>
; ISO Week day number for a given date 0=Monday - 6=Sunday
$iWeekday = _DateToDayOfWeekISO (@YEAR, @MON, @MDAY)
; NOT equal to @Wday
MsgBox(4096, "", "Todays ISO WeekdayNumber is: " & $iWeekDay)